package com.qfjy.service.impl.example5;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

/**
 * @ClassName BlogServiceImpl
 * @Description TODO
 * @Author guoweixin
 * @Date 2022/11/22
 * @Version 1.0
 */
@Service
@Slf4j
public class BlogServiceImpl {

    @RabbitListener(queues = {"blog.java.queue"})
    public void blogJavaQueue(String msg){

        log.info("JAVA收到信息：{}",msg);
    }

    @RabbitListener(queues = {"blog.python.queue"})
    public void blogPythonQueue(String msg){

        log.info("Python收到信息：{}",msg);
    }

    @RabbitListener(queues = {"blog.all.queue"})
    public void blogAllQueue(String msg){

        log.info("All收到信息：{}",msg);
    }
}
